<!DOCTYPE html>
<html>
	<?php echo $head; ?>
	<body>
		<!-- Home -->
		<div data-role="page" id="page1">
			<div data-theme="b" data-role="header" data-id="head" data-position="fixed">
				<a href="<?php echo $this->input->server("REDIRECT_URL");?>" data-role="button" data-direction="reverse" data-transition="flow" data-rel="back" data-icon="arrow-left" data-iconpos="left" class="ui-btn-left">
					Back
				</a>
				<h3>
					Detail Jadwal
				</h3>
			</div>
			<div data-role="content">
				<ul data-role="listview" data-inset="true" data-divider-theme="a" data-filter="true" data-filter-placeholder="Cari jadwal...">
					<?php if($detail != NULL): ?>
					<li data-role="list-divider" role="heading">
						<h3></h3>Stasiun <?php echo $detail[0]->Nama_Stasiun; ?></h3>
						<span class="ui-li-aside"><?php echo $detail[0]->Kode;?></span>
					</li>
					<?php endif; ?>
					<?php if($table != NULL): ?>
					<?php foreach($table as $row): ?>
					<li data-theme="a" data-role="fieldcontain">
						<a href="<?php echo site_url('jadwal/kereta').'?id='.$row->id_kereta; ?>" data-transition="flow">
							<h2><strong>Tujuan :</strong> <?php echo $row->Tujuan; ?></h2>
							<p><strong>No KRL :</strong> <?php echo $row->No_KRL; ?></p>
							<p class="ui-li-aside"><strong>Berangkat </strong><?php echo $row->Berangkat; ?><br>
							<strong>Sampai </strong><?php echo $row->Datang; ?><br/>
							<?php echo $row->Kelas; ?>
							</p>
							
						</a>
					</li>
					<?php endforeach; ?>
					<?php else: ?>
					<li data-theme="a" data-role="fieldcontain">
						<h3>Data tidak ditemukan</h3>
					</li>
					<?php endif; ?>
				</ul>
				
			</div>
			<?php echo $foot;?>
		</div>
		<script>
			//App custom javascript
		</script>
	</body>
</html>
